﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MedicalCare.EntityDefinitions.Entities;
using MedicalCare.Messages;

namespace MedicalCare.Translator
{
    public class ScheduleEntityToMessage: IScheduleEntityToMessage
    {
        public ScheduleMessage Translate(ScheduleEntity scheduleInfo)
        {
            var scheduleMessage = new ScheduleMessage
                                      {
                                          Id = scheduleInfo.Id,
                                          FamilyName = scheduleInfo.FamilyName,
                                          FamilyId = scheduleInfo.FamilyId,
                                          NurseId = scheduleInfo.NurseId,
                                          StartDT = scheduleInfo.StartDT,
                                          EndDT = scheduleInfo.EndDT,
                                          Status = scheduleInfo.Status
                                      };
            return scheduleMessage;
        }
    }
}
